package cn.bb.service;

import cn.bb.dao.IPersonDao;
import cn.bb.model.Person;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class IPersonServiceImpl implements IPersonService {
    @Resource
    private IPersonDao personDao;
    @Override
    public int adminLogin(Person person) {
        return personDao.login(person);
    }

    public IPersonDao getPersonDao() {
        return personDao;
    }

    public void setPersonDao(IPersonDao personDao) {
        this.personDao = personDao;
    }
}
